%%
^([bB][eE][gG][iI][nN]) 	printf("START");
^([eE][nN][dD]) 		printf("END");
^[Ss]+ 				printf("INT");
([mM][oO][vV][eE])		printf("MOVE");
([tT][oO])			printf("TO");				
([aA][dD][dD])			printf("ADD");
([rR][eE][aA][dD])		printf("READ");
([pP][rR][iI][nN][tT])		printf("PRINT");
\.$				printf(" ENDLINE");
\"[^\",]+\"			printf("STRING");
,				printf(" COMMA ");
([a-zA-Z]+[a-zA-Z0-9_-]*)	printf("IDENTIFIER");
[0-9]+				printf("NUMBER");
%%

int yywrap(void) {
    return 1;
}

int main() {
    yylex();
}
